package com.webull.information.center.carwler.common.json.unit;

import org.apache.commons.lang3.StringUtils;

/**
 * retures json 工具类
 * 
 * @author shimingjun
 * @date 2016年8月8日 上午11:38:46
 * @version 1.0
 * @since JDK 1.8
 */
public class News_1_RetrieveStoryML_1 {
	public final static String restUrl = "http://api.trkd.thomsonreuters.com/api/News/News.svc/REST/News_1/RetrieveStoryML_1";
	// "http://api.rkd.reuters.com/api/News/News.svc/REST/News_1/RetrieveStoryML_1";

	public static String getUrnRequestJson(String urn) throws Exception {
		String request_json = "{																																												"
				+ "    \"RetrieveStoryML_Request_1\":{                                                      "
				+ "        \"StoryMLRequest\":{                                                             "
				+ "            \"StoryId\":[                                                                "
				+ "                \"{0}\"																	"
				+ "            ]                                                                            "
				+ "        }                                                                                "
				+ "    }                                                                                    "
				+ "}                                                                                        ";
		request_json = StringUtils.replace(request_json, "{0}", urn);

		return request_json;

	}

}
